#!/usr/bin/env python
# -*- coding: utf-8 -*-

import redis
import settings

pool = redis.ConnectionPool(host=settings.redis_server , port=settings.redis_port, db=settings.redis_db)

def client():
    r = redis.Redis(connection_pool=pool)
    return r

